package com.t235.gc.device.controller;

import com.t235.gc.device.entity.DeviceVersion;
import com.t235.gc.device.service.DeviceVersionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 设备版本表(DeviceVersion)表控制层
 *
 * @author makejava
 * @since 2021-03-24 08:58:31
 */
@RestController
@RequestMapping("deviceVersion")
public class DeviceVersionController {
    /**
     * 服务对象
     */
    @Resource
    private DeviceVersionService deviceVersionService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public DeviceVersion selectOne(Long id) {
        return this.deviceVersionService.queryById(id);
    }

}
